(x_load_font): Clear all members of FONTP before start filling them.
authorKenichi Handa <handa@m17n.org>
Fri, 3 Oct 2003 11:36:04 +0000 (11:36 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 3 Oct 2003 11:36:04 +0000 (11:36 +0000)
src/macterm.c

index 8c22d047939256bdd65b456c51faa9a56003d45f..fc9b890db18a225b526f9068f3c65df703c3af0f 100644 (file)
@@ -6240,6 +6240,7 @@ x_load_font (f, fontname, size)
 
     /* Now fill in the slots of *FONTP.  */
     BLOCK_INPUT;
+    bzero (fontp, sizeof (*fontp));
     fontp->font = font;
     fontp->font_idx = i;
     fontp->name = (char *) xmalloc (strlen (font->fontname) + 1);